<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Login Administrador</title>
    </h:head>
    
    
    <h:body>
        <p:layout style="min-width:400px;min-height:200px;" id="layout">  
        <p:layoutUnit position="north" resizable="true" size="100" minSize="40" maxSize="200">  
            <h1> Login Administrador</h1>
        </p:layoutUnit>  
 
        <p:layoutUnit position="center">  
            
            <p:layout>
            <p:layoutUnit  position="center">
                <h:form id="login">
                    <h:messages />
                    
                 <h:outputLabel value="Apelido:" for="apelido" />
    <h:inputText  id="apelido" label="apelido" value="#{usuarioBean.usuario.apelido}" size="15"
                  maxlength="11" required="true" requiredMessage="Apelido ou senha errados">;
    </h:inputText>
                 
                 <h:outputLabel value="Senha:" for="senha" />
    <h:inputSecret  id="senha" label="senha" value="#{usuarioBean.usuario.senha}" size="10"
                    maxlength="10" required="true" redisplay="true" requiredMessage="Senha Obrigatória"/>
       
     <h:commandButton action="#{usuarioBean.login}" value="Entrar" />
                
                </h:form>
            </p:layoutUnit>
            </p:layout>
            
        </p:layoutUnit>  
            
</p:layout>  
    
    
    
              
    </h:body>
</html>
